Updated deploy script and reverted database helper