backup db and modify footer