DB Tool to generate sql