Woops, was checking if pdo was null and returning it null.