convert CBLDatabase from Observer -> CBLDatabaseChangedFunction
document caching related methods
filters are compiled on demand.