Update mysql and redirect items