DBEntities.js and demo project