Handle (badly) errors opening database.