Work on server. Can now query db on /query/* path