fixed query
changed archive type name
added query types
ha, removed var_dump
edit to filter by start date