[1] fix some sql shit