DB Updates anhand von Input und foreach