Clean up database and update skill sort.