[Migration] don't migrate episodes with invalid IDs
[Migration] Trim excessively long fields
[Migration] skip some documents from old core db
[Migration] fix printing log to stdout