Custom application discovery not populating in the database