Improved mongodb insert