Implement a rudimentary mongodb backend

Top-level fields are collected across all documents in collections