add mysql script to sort out channels