Massive code cleanup
Database classes added.
Moving Packet into separate class.
Sunday commit