add ActiveRecordTables#ddl
implemented #reverse, #lastOption, #last in QuerySupport