adding in database realtionships