use AR.sequence_name instead of sql