Added dim for db.view and db.Rquery