fixed route query for DB provider
Merge branch 'master' into heroku