updates scope sql for develop branch