Made delegate registration write successfully to db