fixed primary key bug, updated server_internal.h