New SQL model and database