* Updated background task code to support options and self clearing * Moved background safe database upgrade code to a background task