refactoring code to use test environment. Database connection strings added to environment configs.