Do database accesses in parallel where possible
Merge pull request #25 from Metaswitch/homestead-multiple-public-IDs

Reviewer Felix: Do database accesses in parallel where possible