configuration for heroku
Changed db configuration
Various prettifications and refactoring