Rewrite of sync module - enable label and emails imap/db sync