Add reset of db before syncing