improved scripts for backing up db