tested, minor bug fixes

also added ERROR_NUMBERS to Config.ini, added Database::killThread,
Database::next