Reorganize error codes, add class autogeneration option (On for now)
Protect and close all SQL statements and resultsets
Ease logging