Get rid of the raw SQL.