Implemented some of Database.cpp

Implemented some of Database.cpp. The only things left to do on the
project basically are the cross join and the query functions.