DB config and template file change