Add a very simple db helper.

1. add Table and PagedTable struct for simply db operations.
2. little changes to travis ci configuration file.
3. add some test files.