'Return the next transaction number from the database'

def get_next_transaction_number(self):

    highest_transaction_number = self.execute(u'SELECT    MAX(transaction_number)    FROM    transactions').fetchone()
    if (not highest_transaction_number[0]):
        return 1
    return (highest_transaction_number[0] + 1)
