added beta version db architecture (after complete functionality code must refactored)