mock mongodb client (accessing from localhost)