updated config, new options to control template engine and extension, new option to specify database type