Changing database to use postgres and preparing it to use heroku