fixed route query for DB provider