Add decorator for database actions.