Fixed table name
Fixed table name and added blocks deletion.
Fixed typo in block values insert