refactor mongo reserved keys, closes #519