Now updating datas and not inserting it everytime