remove 'old style' sql data and function