add client-side mongo for inserting materials