many patches to catch failing api calls and fixed a bug in db_clean_up also preventing character table updating on failed register attempt
take 2 for the change to not add characters to db on Reg fail