updated read me and use proper way of getting PDO object