update data if it already exists in the db