Some more code for model of site-db-app comunications;