before starting on moving views to use database