mongodb support

See readme for usage.