read write in gridfs