added rmt.sql