Fixed issues with different mongo instances running on different dbs