Add the cmd,common and db part, now most code related content is finished