Calculations implementation in Postgres

A subset of calculations (ones that don’t require joins) may eventually be lowered to be generated columns automatically by ash_postgres.