fixed views to work with new db/pop script