add db spec for jasmine-node.
add spec for db connection
fix file type bug
file add

add context.js and entity.js.
Merge pull request #5 from sayume/dev

Dev