Get around bad database connection errors