New SQL model in solib.sql