Use PDO typehiting to prevent errors

Remove the php closetags