remove unnecessary globals from generatePassword() function

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
migrated admin_tickets and admin_updates to PDO database, refs #1287

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