moved database mmgmt into a view