make a couple of functions for serializing to and from inamedb