Update sql for consistency with standarts.