mock code for workload DB hooks