add sql data from legacy db