Update sql design