minor changes around api and GET and POST request
Query object stores query data
don't commit database!