Few fixes

Fixed module json not imported.
Fixed not giving `createdAt` a value in `channels` when adding a
channel.