fixed PDO problems, thanks to jon rock