Changed profile to use the primary ID from the pet table, rather than the petid field.