remove test code in db.cpp