Save transaction order in the database