Fixes for Residency status calculation
Merge branch 'development' of https://github.com/dchbx/gluedb into development