added logout methods to close SQL connection