fix update memory adapter
implement mongo adapter