added support for different sql inputs (COR_DET||CTCSS_DET)