Added ability to purge DB after X days