Improve mongodb access