Changed sql schema