Loading service chain templates from config file

Also fixes to inserting and reading service types and services lists
from varchar