That's my point, just how much easier is it to write your own database? I think you'll find that you spend a lot more time writing the database functionality than you would spend writing queries for something like mysql. 🙂
There aren't many examples of flatfile databases because of this very reason 🙂