Update Database.cpp

Updated erroneous functions