Update insert() method to reject duplicated key values