Added custom DB context & early profile management