Stop database on update

Stop database during update. Fixes issue #19