Wrote skeleton for reading returned rows from query to obtain user primary key.