add database schema
use tinyint rather than int
Merge pull request #5 from liaofeng/db_schema

add database schema