Qpractice: backup and restore added along with code clean up.