Updated script to include extra MySQL parameters