Implement a JavaScript/Node.js web scraper that extracts specific information from a given website and stores it in a SQLite database. The scraper should be able to handle pagination and extract data based on CSS selectors or XPath expressions.

To create a web scraper in JavaScript/Node.js, you can use the following libraries:

1. `axios` for making HTTP requests
2. `cheerio` for parsing and manipulating HTML documents (using CSS selectors)
3. `sqlite3` for working with SQLite databases

First, install these libraries by running:

```bash
npm install axios cheerio sqlite3
```

Now, create a new file called `scraper.js` and add the following code:

```javascript
const axios = require('axios');
const cheerio = require('cheerio');
const sqlite3 = require('sqlite3').verbose();

// Define the base URL of the website to scrape
const baseURL = 'https://example.com';

// Define the CSS selector or XPath expression to extract data
const dataSelector = '.data-class'; // Replace this with your desired CSS selector or XPath expression

// Create a new SQLite database
const db = new sqlite3.Database('./scraped_data.db', (err) => {
  if (err) {
    console.error(err.message);
  }
  console.log('Connected to the scraped_data database.');
});

// Create a table to store the extracted data
db.run(`CREATE TABLE IF NOT EXISTS data (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  content TEXT NOT NULL
)`);

// Function to fetch and parse a single page
async function fetchPage(url) {
  try {
    const response = await axios.get(url);
    const $ = cheerio.load(response.data);

    // Extract the data using the defined selector
    $(dataSelector).each((index, element) => {
      const content = $(element).text().trim();
      
      // Insert the extracted data into the SQLite database
      db.run(`INSERT INTO data (content) VALUES (?)`, [content], (err) => {
        if (err) {
          return console.error(err.message);
        }
        console.log(`Inserted: ${content}`);
      });
    });

    // Handle pagination by finding the next page link and calling fetchPage recursively
    const nextPageLink = $('a.next-page').attr('href');
    if (nextPageLink) {
      await fetchPage(baseURL + nextPageLink);
    }

  } catch (error) {
    console.error(error.message);
  }
}

// Start scraping from the first page
fetchPage(baseURL).then(() => {
  console.log('Scraping finished.');
  db.close((err) => {
    if (err) {
      return console.error(err.message);
    }
    console.log('Closed the database connection.');
  });
});
```

Replace `https://example.com` with the base URL of the website you want to scrape, and update the `dataSelector` variable with your desired CSS selector or XPath expression.

To run the scraper, execute:

```bash
node scraper.js
```

This will start scraping the website and store the extracted data in a SQLite database called `scraped_data.db`.