Changed DB handling to allow pushing to Heroku and converted project to HAML