Code

Created a safe autoincremnt value for id if needed.