Prepare query again when expired from the server