fixed a pg error where uid was an int and not a string