Replace sqlite3 gem with pg