changed production database to use PG, added more changes to clean up code where current_user is absent, before heroku deployment