convert the app for heroku

Migrating mysql to posgresql and setting up everything for a runnable heroku server