Updated deploy script to work with new DB secret keys ('database' instead of 'name')