Added database functionality to support lectures