Added database, metadat persistence and chestengine. woohoo