New SQL functions dir structure