Allow instantiation without app and db, useful for application
factories.