rename InMemoryDbErrorHandler to AsynchronousDbErrorHandler
Add a callback in AsynchronousDbErrorHandler to tell when the database is corrupted