Can I make a macro for Word to store data in databse?

Can I use XML to store datas? eg. Name, Add for a Student table.

Can I also store JPG/BMP/GIF in the database?

Thanks in advance.