Modification to DBAccess to fix concurrency issue