converted Api Key table to use integer for PK