update sql model