Optimize DatabaseTestCase so travis build will be faster

I modified DatabaseTestCase to setup the database once per test case (in setUpBeforeClass) as is done with IntegrationTestCase. This decreases the build time for Integration tests for about 25 mins to 15mins.

@mattab Please review.