FAIMS-311: fixing syntax in queries
FAIMS-311: fixing bug with arch ent history failing
FAIMS-311: fixing bug with geometry not showing up in history