Commiting from database failure recovery