added some output to travis to get a little info
added db test, and consolidated some code