working on databse view