Fixed error in ChannelDatabaseAdapter