Changed to gem to pg instead of sqlite3