mongodb library and auth