json-response: Remove query from database.hs.