extracted db setup from tests, attempt to fix travis