Save model

Save model sql fix, save beamparameter successfully implemented, save
model status successfully implemented