add package of database

Add several classes that required in this package.
Lack of testing.