Locked Exception Error Handling

Added error handling and execution retry to the insert, update, and delete methods.