moved scoped_ptr to QScopedPointer on each mongodb's request