Change position of setting Primary Keys in SQL statements