Update existing records instead of append

I changed put method a little bit to add "update" functionality