renamed some things in the db, added db query count to http request