Change keys table to a UUID primary key

Signed-off-by: Lewis Marshall <lewis@lmars.net>