Move primary key logic to Form1.

Form1 already has the DataTable we can use to check for a primary key.
Why open another connection in Form2?
Should probably check my code before committing it.