Implemented simple DB model