Refactored deployment script to wrap DB like what was done on the web server