xml to database

edit the prev db, base on the AI we will use
debug the prev commit