Update tables and inserts in db_main.sql
Add function to execute formula, need add more functions -refs #7220