fixed callback value for update
handle newer configuration for db/collection