Fix exclusion rules
- Fixes a number of bugs - Adds `WithStateTable` option
Use GET_LOCK + RELEASE_LOCK for MySQL