database and view 2 working