add putting relationships to database (to be continue