feature added to store and fetch from DB for online gain calibration