model done
change to sql