Fixing SQL

fixing the createTables SQL