SQL server consolidation for distributed system