convert primary_key to symbol
refactor using mutate wrapper