This commit modifies the SQL upgrade to work with AUTH database named different. Also fixes a INSERT/VALUE mismatch number.