saving into xml database