modify testing flow for travis.
get database.