Add database setup

I'm not a fan of the current design of talking directly to the
database. Getting it into travis as a first step to changing that.