Adding a backup function
add a update phase function
add a delete old phase function