Adding the sequelize specific code to promise.js, properly this time