Separate :queries and :dbs into different API endpoints.