sql skeleton