public function populate(DbManagement $db, DbManagementObject $DbManagementObject, $query)
    {         
        $keys = array_values($DbManagementObject->getKeys());
        $db->add($query, $keys);
        $array = array_values($DbManagementObject->getValues());
        $db->query($query, $array);
        return $db->lastInsertId();
    }