db decorator