This is a very old computer problem and has been well solved already hundreds of times.
To give you a little context I've been using data bases for about 36 years, since 1977, and there were good data bases for many years before I was using them.
Now, I can see that you are interested in computers and software which I think is cool. I suggest you buy some books on the subject and begin to learn more of what is out there before starting off building what has already been built.
Good luck on your education, there is still much to be done in this world with computers that has not yet been done. For example I would like to have an efficient code editor that uses more than my fingers for input, as they get tired. I think it would be great to think thoughts and have them interpreted.