tutorial controller and model for DB interaction