added configuration editing and saving in db