fixed mongo URI generation