Invalid formulas can now be saved. Added db column to indicate validity