Migrate to postgres and reconfigure gemfile