Added confirmation of successful transactions in the database