Deleting products db before saving and removing oninit alerts