update sql and domain