Cheat sheet for using PDO (PHP Data Objects) in connecting and querying MySQL database.