Thanks for the help.
Now I got a issue, in createdb.sql, if I only create one table, the php code can generate it correctly, however if I want to create two tables, php cannot generate and gives error "Query failed: You have an error in your SQL syntax near 'CREATE TABLE profile...", I have...