Modify report queries for changes in tables