moved database interactions to database module
added /v1 as prefix to routes
added untested method for request validation