fix sequel syntax