j/graphdb: bugfixes + add stringdb and declare/retract