sql backup and prep for main media create statement