A few methods using raw SQL need to be adapted

Methods
Public Class methods
current_version()
      # File kirbybase_adapter.rb, line 1137
1137:     def self.current_version
1138:       Base.connection.get_table(schema_info_table_name.to_sym).select[0].version.to_i rescue 0
1139:     end
Public Instance methods
set_schema_version(version)
      # File kirbybase_adapter.rb, line 1141
1141:     def set_schema_version(version)
1142:       Base.connection.get_table(self.class.schema_info_table_name.to_sym).update_all(:version => (down? ? version.to_i - 1 : version.to_i))
1143:     end