The try/catch can be removed, as can the checks for m_pDB/DS leaving just your PrepareSQL and then return !GetSingleValue.empty().