Started implementing the SQL database.