redoing database