Sql skeleton