convert to db_select, correct logic in vsite_access.install #3660
Merge pull request #3679 from openscholar/3660-update

convert to db_select, correct logic in vsite_access.install #3660