Use the DB stored procedures, instead of raw SQL