ENH: Updated db_cron.py. Also added re_tools.py