title: What options do I have when I want to store data from an application locally and without external dependencies?
body: <p>I am designing an application which ofcourse needs data storage (e.g. user accounts, logs, etc). I don't want performance to be a problem so the retrieval/update/removal of data will be in a separate thread from the main application thread (creator-consumer model).</p>
  
  <p>I cannot use NoSQL databases or any other database-system because they need an external application to be running to make the data available (e.g. with a network pipe to a host).</p>
  
  <p>Yet I need my data to available withouth the need of running another application, so I want to integrate a system into my own application.</p>
  
  <p>I have looked around for databases which can be integrated but I cannot find any.</p>
  
  <ul>
  <li>Are there any available for simple insert, update, remove operations
  project only? </li>
  <li>Or do I need to stick with flat files because there is
  no independable data storage library which I can integrate? (eg make
  a class and define file writing functions there for my data storage)</li>
  <li>What are my other options?</li>
  </ul>
  
  <p>Side Note: I know it would be kind of stupid, but actually one of my options: is there a SQL (PostgreSQL preferably) database which I can compile along with my project and then issue queries locally?</p>