added changes to pass environment name to create database privilege
template page