simple wrapper for mongodb