fix left right in SQL files