Quick and temporary fix to load the correct authn db

TODO: Refactor the code in order to use a mongo wrapper object
that can be easily shared between apps.