sql is no longer used.
restructuring of project to use import wpdb