fixed sync issue btw local collection and db collection on notes, added reverse chron sorting for notes