sql = "Select * from ... your sql query here"
records_array = ActiveRecord::Base.connection.execute(sql)
def self.create_table
sql = <<-SQL
CREATE TABLE IF NOT EXISTS students (
name TEXT,
grade TEXT
)
SQL
DB[:conn].execute(sql)
end