add try catch for server insert to catch duplicate key errors