add the db auto backup script

need a tmp dir in ~