Added a backup flag to backup DB
Added comments on new strategy, sql optimization