About to fix fetchall logic in uniqueID to just fetching the last one