Converting admin mySQL statements to PDO