Avoid db usage in view

in _form.php views of Articles and ArticlesCategories was database usage, moved it to controllers.