new sql scheme