added view for entities
updated db