Wrapper for mongodb's java driver