Create models and test database.