FR: Make local data retention time configurable
Control Center version: 1.9.
Currently, local data stored in the database is deleted when it gets older than 3 months in order to prevent the databases to grow indefinitely.
We should allow such time to be configurable, preferably via the UI.