The more writing and querying you do, the better you ought to get at doing what you’re doing. Sometimes the first written novel will not find an agent, but as a writer, you should also be working on your next book even while you are querying the first.