[database] fix missing CommitTransaction(), causing queued ExecuteQueries() to be ignored (e.g. repo updates)