Fix SQL query of connection types report