'Add a specific transaction to the database'

def add_payment(self, payment):

    self.execute(u'INSERT    INTO    payments    (trader_id,    message_number,    transaction_trader_id,    transaction_number,    payment_id,transferee_quantity,    quantity_type,    transferee_price,    price_type,    address_from,    address_to,    timestamp,success)    VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?)', payment.to_database())
    self.commit()
