updated db view, small fixes