Switch db to postgresql for pre-heroku push, fix minor bug