Updated table columns, added some sql queries