Install hook about finished, db and start not tested.