Simplify db-wrapper. #ref 302
Fix travis config. #ref 302