added getting/posting channels to db