SQL order fix, and SQL new install fix.