create and delete api keys
fix index on table, add a sample api method