added reconnect method for db widget