update mongodb query and connection string