Update connecting to database to be using PDO rather than regular mysql_ functions.