database actor with configurable router