refactor handling of definition processing: so we can reuse code to handle dbProperties in other places in mcm
more consistent method definitions
converting topic definition to more generic form