Added DB hooks.