revert database.cpp file