Fix for mysql primary key bug

Signed-off-by: Rob Day-Reynolds <rdayreynolds@pivotallabs.com>