Extend psaCases SQL condition