add models and sql