updated main.sql for processors