Selecting different fields and keys for insert update and delete