Basic logic scheme in TaskDialog, comments on what to do about db connection and model