fix usage of makePathfield (how the hell did that find its way into 0.9.31+?), fixes #1337

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
backport db fixes, refs #1336

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>