mysql schema refactoring