Switch to postgresql

Needed for heroku.