Working on bgtool, which will handle the database interactions for the 'uncorrected pipeline' (background restored pipeline).