Database Interface Deisgn with different sort merge algorithm