Added report_filter.xml and reworked functions to retrieve filter queries from xml