Also rename "chat" to "channel" for the Message DB, and make its primary key include channel IDs
Also add some missing license headers