adding missing quotes
rewrite mongo config as late as possible; deal with "." in collection names