update db shutdown hook