Updated model with SQL creation