As a software veteran... Every rookie programmer thinks the existing codebase is garbage and needs to be rewritten. Ofcourse, things can be improved, but doing it in a sweeping way, and in a hurry, always, always leads to unintended catastrophe.
Please take backups - original as well as daily.