(Issue 579) Message search, improve document deletes and one-many parent-child