Fixed some links in templates and added db config to config file