correct the non working of th DB if no existing one