Fix fetchEntitiesFromDB function to apply ACLs
Merge pull request #17 from david-cahill/master

Fix fetchEntitiesFromDB function to apply ACLs