PDO method in edit.php