database has a view