Database relations and primary files added.