Changing DB calls from mysqli to PDO