What exactly is changed here? Can't you think to remove this duplication of SQL commands?