updated erp.sql