Converted error class to static.
Errors: Changed global $error to static.
DB: Real escaping, restructured select function.
DB: Automatic escape for strings and numbers.
Updated wiki and session to the new DB methods.