fix mongodb access