fix for non-int types as table primary ey