BS-6786: update all SQL files (add ref table)