udpated scheam sqls