Cleanup
Refactor of the routes and controllers. Implementing models to simplify interation with the database