Improving how to insert keys and categories

Added KeysCategory name as unique