Currently, there is no way to change the location where the database is being stored.
I’d suggest either copying the existing database every x amount of time, or creating a new database and reading the Modbus data manually using the commands described here: