Jwang idb sync

Add the sync mode to IDBController.
Prefer to use a `Boolean` here so we can tell whether the user had a value for it or it was missing.