script to merge multiple sql files