fix tiny sql-query error when using APS and correct DbManager-replacers

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
why easy if you could do it the hard way? :P

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
Merge remote-tracking branch 'origin/0.9.31'