Some fixes required for mongodb to be deployed