MySQL data structures refactoring, fixups rounding methods migration