Changes use of double to BigDecimal to try to make it work with Postgres