fixing saving in DB
fixing saving in DB