debuged contrller now working on db for views page