add mapreduce insert for documents as well