fixed proper templating of site domain and auto updata database variables