New function pymsqlTest to test connection with local db