add unique_key option
add a check for unique key being in the record + refactor
rename unique_key to id_key
bump to 0.1.2