Simple wrapper around the PHP MongoDB functions