fix to concurrency issue with regards to auto_inc column race condition