refs #896, fix issues with respect to primary keys that have fields going in reverse direction