successfully using ajax on the revenue section, and calculating the sum. Need to still generate the c_tables script to store the entries in the database