store rank in mongo