Replace uuid column with int8 column to speed up queries