Table locking added. MySQL Unit Test Passed.