preliminary DB and views