sql schema correction