saving in sql database, protecting from inserting the same character name