modified query to exclude mysql views which would cause errors in merges