Ported to C++: Database_Commits