"sql.run is not a function" TypeError in Node.JS (Discord.JS) : I have the following code for a Discord bot I am making in Discord.JS

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-js -->

        if(msg.content.startsWith(prefix+'bank')){
            var i = 0
            var total = 0
            sql.run("SELECT SUM(money) FROM money");
            msg.channel.send('** :earth_americas: | The current *GLOBAL* bank is worth e$'+total+'.**')
    }


<!-- end snippet -->

I get the error:


<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->

            sql.run("SELECT SUM(money) FROM money");
                   ^

    TypeError: sql.run is not a function
        at Client.client.on.msg (/Users/jack/Documents/Code/EcoBot/bot.js:105:16)
        at emitOne (events.js:96:13)
        at Client.emit (events.js:188:7)
        at MessageCreateHandler.handle (/Users/jack/Documents/Code/EcoBot/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
        at WebSocketPacketManager.handle (/Users/jack/Documents/Code/EcoBot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)
        at WebSocketConnection.onPacket (/Users/jack/Documents/Code/EcoBot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
        at WebSocketConnection.onMessage (/Users/jack/Documents/Code/EcoBot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
        at WebSocket.onMessage (/Users/jack/Documents/Code/EcoBot/node_modules/ws/lib/event-target.js:120:16)
        at emitOne (events.js:96:13)
        at WebSocket.emit (events.js:188:7)

<!-- end snippet -->


Here is where `sql` is defined:


`const SQLite = require("better-sqlite3");
const sql = new SQLite('./money.sqlite');
`
I have tried to find the answer, and I've been through the docs, but I have gotten nowhere. Docs are [here][1]. Any and all help is appreciated.


  [1]: https://github.com/mapbox/node-sqlite3/wiki/API#databaserunsql-param--callback