Changed db config to comply with Heroku
Cleaned db config
Fixed routes and added a view