add MySQL queries to debug SSL