Fixed missing bracket.
Now using curl for all internal API calls. Other misc fixes.
Misc fixes to init module.
Fixed missing parameter issue. Changed create table syntax.
Changed create table syntax.