Bug fix for db auth when connecting mongoengine db