Added funtion to query OPR records by year