updated structure sqls