Added a function to add new courses to the database.