database and views