Added mongo save session functionality