mysql changes and different structure