add json support to BaseQuery and Model
replace union with update
Method `to_dict` is now added on Model instead of query
It's for the json conversion of Model
remove the usage of to_dict in View
Now to_dict is only the business of Model