[UPDATE] Fix unique key in sql