Modernize database update hook

Change-Id: Ic3c3550f73a32fadc7fe3942bec1d056c8b552a2