added view to database