I've been thinking about making a project for fun based on "AI". I would like to make a program that can have a conversation or answer questions with a user.

My idea is using a database, it will record all questions asked by users, and also record replies to them if it doesn't know the answer. The Database will look like this.

-User says this for the first time
|
|--- Answer from other users that I learnt
|--- Answer 2 from other users that I learnt
|--- Answer 3 from other users that I learnt
-User says this for the first time
|
|--- Answer from other users that I learnt
|--- Answer 2 from other users that I learnt

Etc..

If a user asks a question that the program hasn't learnt yet, the program will record it, and then ask a different user for his answer and record that also. If a user has already asked this and the program has an answer, then it will display the answer.

This isn't really AI but it's an idea that I will try to develop. I'd appreciate it if you would help me with by giving me ideas to improve this.