Jwang idb sync

Add the sync mode to IDBController.
hmm, if the parameter above is a `Boolean` might this not cause a `NPE`?