Discord JS attachment

What im trying to do is basically let the bot upload the .db file on discord.

what i tried:

if(cmd == "backup"){
  message.channel.send(moment().format('YYYY/MM/D hh:mm:ss SSS'),{files:['./data/db.db']})
}

which would just send the formatted date without the file, and then i tried:

if(cmd == "backup"){
  const file = new MessageAttachment('./data/db.db')
  message.channel.send(file)
}

which would just give an error of an empty message.