Backport cron update from Bolt 2
Backport cron database changes

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
Stop Sqlite choking on defunct column being null
Merge pull request #1819 from GawainLynch/release/1.6

Backport cron update from Bolt 2