queryWithMetrics

Queries the database for suggestions.