Connect middleware for populating params with sequelize objects.