fix query in admin-customers, improve admin-ipsandports, clean up getThemes(), refs #1287

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