Added the add code to detail pages for the DB.