Added boilerplate to do SQL queries necessary.