handler: sqlite: add teaerdown handler that will delete old entries

The config name is expiration_days
handler: redis: add teardown to keep the lists size reasonable

Adds the max_list_length to limit the size of the lists of metrics
stored in the db