creates relationships and nodes to the database Fixes #2