more PDO conversions

Added a special helper for language tags.