Added the relational links to the database stuff