Fixed issue with db_transaction