Read from primary db for applications

Reading from the secondary can cause problems when updating
application configuration
Merge pull request #49 from atlasapi/specify-read-preference-on-applications

Read from primary db for applications