added code for translating query and db sequences
added tests for util_sequences.c