def _course_in_database(course_dict, db, q):
    """Check if a course is in the database.

    Keyword arguments:
    course_dict -- a dictionary specifying the course to check