Fixed the sql errors  in the database creation script