Lesson creation - backend, part 1

The SQL backend for lesson creation has been added, with a new method
to insert the data into the database, and a helper method to retrieve
the appropriate subject information.