query($sql)->fetch(PDO::FETCH_COLUMN); http_response_code(303); header('Location: /docs/' . $hash); die;