Gets the basics of the SQL operations wired up.