Mostly fixes to function calls & DB procedures

Fix made to Connection.php, additions to UserIO.php, fixes to
SP_ScanUser.sql and related files, fixed all of
ScanGroupIO/SeriesIO/ChapterIO's function calls.
Changed /Modules/Main/mindex.php to call data from the database instead.
There is no lastActive field or anything, just demonstrating how the
calls work. You'll need appropriate test data and a working build of the
latest DB for this to work.