redoing for db