I've successfully reproduced your error on my computer
After a few tweaks to your code, here is the success message
The problem lies in line 2 of your index.js
file, where you are importing pool instead of sequelize
You should change the line
import pool from './db/db.js';
to
import sequelize from './db/db.js';