sql for update image delete likes