sql updated to BYR