fix database manager dialog, add multi-thread tcp server