Backend fix for login. Hopefully I got it all.
Moved stored procedures (but not stored functions) into their corresponding IO files.
It isn't desirable, but /most/ procedures are simple enough for it not to make a difference,
and others can be integrated with the calling function to the point where it doesn't matter.
At a glance, this appears to work just fine. Further security measures may need
to be taken, but hopefully those implemented already will suffice.