Changed sqlite3 gem to pg.