Some database functionality

Added more code for database functionality
-XML Serialization
-Database reading