'Return the next order number from the database'

def get_next_order_number(self):

    highest_order_number = self.execute(u'SELECT    MAX(order_number)    FROM    orders').fetchone()
    if (not highest_order_number[0]):
        return 1
    return (highest_order_number[0] + 1)
