[DBTablesHost] Add a new method: upsertHostgroups().