mongodb simple read and write test