'Add a specific order to the database'

def add_order(self, order):

    self.execute(u'INSERT    INTO    orders    (trader_id,    order_number,    price,    price_type,    quantity,    quantity_type,traded_quantity,    timeout,    order_timestamp,    completed_timestamp,    is_ask,    cancelled)    VALUES(?,?,?,?,?,?,?,?,?,?,?,?)', order.to_database())
    self.commit()
    for (reserved_order_id, quantity) in order.reserved_ticks.iteritems():
        self.add_reserved_tick(order.order_id, reserved_order_id, quantity)
