changed dev db to postgres to match heroku. fixed invite handler