started converting to PDO usage