@classmethod
def create_entry(cls, db, dow, time, zone, temp):
    """ Create a schedule entry in the database.

        dow is the day of week, counting from 0 being Monday. """
    cursor = db.cursor()
    cursor.execute(
        'insert into schedule (day, starttime, zone, temp) values (%s, %s, %s, %s)'
        , (dow, time, zone, temp))
