insert and get KEy