performance update

- removes insert, on duplikate key update functionality (performance issue)
- session first queries for existing key and then updates or inserts