added graph database functions