Updated SQL structure.