getting the autoincrement for mysql right