Added xml loading and parsing to create database. Updated Category and Database models to fix bugs and mesh with xml IO.