views and db