Converting to PDO style, fixes to news