mysql module another refactoring (backward compatibility break)