Fixed `repair database` command for graph model