Update database.cpp

greg the god found my mistake