sqlite db saving and retrieving settings. showing properly in main panel also