Update database.cpp