fix db view