updated the sql schema