MIFOSX-226: add data scoping on loans for retrieveAll and retrieveOne