get_ids_by_host and get_or_create_for_host little change