change sqlite3 gem to pg