addkey
Syntax:
%addkey(rec,key,value)
add a key-value pair to a database record and return the modified record