worker: Don't access DB before initialized
Created by: eseliger
The DB must not be retrieved before the Routines method is called, because it relies on the conf
package and that is only initialized at that point in time.
Test plan
Seeing worker init logs again, didn't before this change.