further refactoring, extensible MySQL dump and import