Allow redirect() to be called before database has been initialized.