persist channels to a sqlite db