update rw_base.sql with newest schema