[task] Add some function for getting sequence from db