working app with xml as database