MDL-32697 use current database sequences instead of global scope