Migrate from default installation (RPI) to MariaDB (Synology NAS)

Hi,
As I had several errors (Error executing query: (sqlite3.OperationalError) database is locked (Background on this error at: http://sqlalche.me/e/e3q8) since I first setup my hassio on my RPI 3B+, I thought it could be a good idea to migrate from the default database (I believe it’s sqlite) to MariaDB installed on my NAS Synology DS716+.

I didn’t find anything regarding doing the migration in my case and I would like, if possible, keeping the existing database and its history to the NAS.

Could you please help me on this and/or pointing me to the right documentation.
Thanks