make query for template_fields work for albums too