SqlModule improved and commented.
Tests for SqlModule added.