fixed controller start/stop/restart db write...finally