Use a service locator and add a db class.