diff --git a/cmd/cayley/cayley.go b/cmd/cayley/cayley.go
index <HASH>..<HASH> 100644
--- a/cmd/cayley/cayley.go
+++ b/cmd/cayley/cayley.go
@@ -293,7 +293,7 @@ func main() {
 			break
 		}
 		if !graph.IsPersistent(cfg.DatabaseType) {
-			err = internal.Load(handle.QuadWriter, cfg.LoadSize, "", *quadType)
+			err = internal.Load(handle.QuadWriter, cfg.LoadSize, cfg.DatabasePath, *quadType)
 			if err != nil {
 				break
 			}
cli: fix loading of data for non-persistent backend