Fixed some potential memory leaks due to not deallocating memory for pointers in the Database.h file.