Updated server side.

Critical:
Changed initSQL's dependency.
Bug:
Some small changes for uncommon bugs.