Hi,
I would suggest having the MariaDB tables as linked tables, name them lnktTBL1, lnkTable2 etc. Create a duplicate set of tables names Table1, Table2 having the same structure.
Upon startup run a Delete query on Table1 and Table2 and then have an Insert (update?) query that copies all data...