it make no sense to compare server_id and 0, if you give 0, you will get an random id between 10000, 20000