added sql tables and views used