migrate admin_message, admin_phpsettings and admin_templates to PDO, refs #1287

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