DbObject key function