Made a ID check function for tables with multiple primary keys.