Table attributes setting changed

modified sql queries.