Add functionality to store courses in database