sql+salt, models to sql