Added lock and unlock tables in the dump
Replace inserts