Add error handling for opening the database.