WL-3567 : Add autoincrement column to avoid db insert exeption

You should probably be throwing an error when the insert fails so that an error gets returned to the client.