add traffic-used when adding a customer; fix sql-error when removing a customer

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