Abstracted away the rest of the raw SQL queries.