fixed typo
deprecated __get_uniq_key
use ensure_index instead of create_index
added safe support
automagically set _id to item