implemented contact update and creation