fix(database): don't start backing up if a restore is in progress