Eliminate sequence name collisions

This patche eliminates the problem of sequence id collision among
multiple queries.

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>