mongo code for store last video position