sequelize import can now accept a function as the definition