Switch database to postgresql to prepare for deployment on Heroku