this is the main factory for db tables
overwrite this to prepare your instance i.e.
generic retry of idempotent operations (find/read)
whatever return type of f
how many times to retry
the function to retry
set the instance to use
important during the upgrades themselves - you can't recursively use db