sql.py: put_table(): Factored out code that inserts into pkeys table into run_query_into_pkeys() helper function
sql.py: put_table(): Factored out code that inserts into pkeys table into run_query_into_pkeys() helper function