Fix: errors in Database.cpp