Reading a math expression and checking if it is equal to expression in the database