removed some old lines and fixed .sql