TESB-8910, update index sql for H2/Derby