Removed Toast which caused exceptions. Added addComment()
removed setContext() which had been used in DBConnector
Added CheckConnectivity permission