Added support for embedded documents in mongo