fix update functionality; add userId to relic mongo document