Fixed error where db.Accounts.notifyConnection were actually replacing the document ratheher thab updating it