update sql for new rights