1st attempt at writing to local buffer:mongodb