WIP: remove Qt - implement simple DB without Qt.