added initial reading of MasterDb and ep-templates