Connected Add Agent with the database