made some changes to incorporate a local test database instance