fixed updatedb in views