changed gem from sqlite3 to pg