Simple graph database in Scala