Updates to the sql scripts in network control.

Formatted the scripts to look better, and made them more consistent with
squirrel.
Merge branch 'AJAY'