db test support, close #78

1. added test for db widget with sqlite, mysql and pgsql databases
2. added db test for Travis, CicleCI
3. fixed some test error