updated gemfile and changed db from sqlite to pg