mongo code for store video position