forgotten SD2 sql part to prev commit