commiting after recovering from bad database