Implemented hook_cron and added an option for the length of days to keep open and click records. After this time records are deleted.