Jwang idb sync

Add the sync mode to IDBController.