change table uid to id