Adding new block class patch to check for db tables before trying to delete them.