Fix purge tables order
[#38572037] Manually merged
[#38572037] Rebased and use latest core (24.1)
Bump version and upgrade Core version
Add Sql log (but comment it)
Merge pull request #68 from maxigit/38572037_change_db_from_sqlite_to_mysql

38572037 change db from sqlite to mysql