title: How to get Node Json Database working in this script?
body: <p>I am using <a href="https://github.com/Belphemur/node-json-db" rel="nofollow noreferrer">node-json-db</a> for storing data in my Discord bot. The bot's purpose is to be a patient records system for roleplaying in FiveM (this is not important, but I thought it would clear thing up a little). I have this script:</p>
  <pre><code>    module.exports = {
      name: 'search',
      description: &quot;Searches for patient info from database&quot;,
      execute(message, args, Discord){
          import { JsonDB } from 'node-json-db';
          import { Config } from 'node-json-db/dist/lib/JsonDBConfig'
          var db = new JsonDB(new Config(`pdb/${message.content.replace('search', '').json}`, true, false, '/'));
  
          db.push(&quot;/test1&quot;,&quot;super test&quot;);
  
      }
  }
  </code></pre>
  <p>(This script is for testing)</p>
  <p>I cannot get it to work, and I get a error: <code>SyntaxError: Cannot use import statement outside a module</code> as I am running the script. Where should I put these import statements? (I am using external files for commands, I have a main.js for the bot skeleton (logging in, getting commands etc.))</p>