store courses in the db