Use variable  for 'name' column in database insert/update
Merge pull request #331 from kp52/PM

Use variable  for 'name' column in database insert/update