changes as per pull request comments to ConsoleController, Factory and DatabaseConfig Classes