Updated database class for Hashmap of Hashmaps