catch all errors when trying to connect to db, not just SQLAlchemy ones