Changed database after an error