[DBTablesHost] Handle hostgroup correctly.