add memory, get, post and update
integrate with mongodb