Added functions to create nodes and relationships in database