add support for SET SQL command
fix a bug with attributes deleted