add README, refactor Qdbase