seperate the scope in database management