This looks like you're trying to create a place to store database like data which is a big, big task to do. Why not using something ready made, for example
RaptorDB - the Document Store[
^].
There are a lot of choices out there. Even free SQL Databases such as SQL Server Express edition. All depending what you're after. :)