Hello,
For bellow
"I don't know if what I did it's ok, nor how to, for instance, create an application to register people on a database. Where would the sql sentences be?"
Your UI or interface must be in View
Model will contain Detabase related query , now controller will be bridge
in between them.
Here is some link for you hope this will help :)
Learn MVC (Model view controller) Step by Step in 7 days – Day 4[
^]