Implemented database operations for course