equation now always has an id (insert with null was causing PostgresSQL errors)