BS-8940, add sql migration