update sql structure