Restructured the app

- Moved folders around to make directory hierarchy more coherent
- integrated XML parser
- Updated SQL schema