Jwang idb sync

Add the sync mode to IDBController.
When you switch to a `Boolean` above, here you will probably want to set the default explicitly:

`Objects.firstNonNull(sync, Boolean.FALSE)` or something like that.