Correctly cast calculation results on PG

MySQL reports the column name as `"MAX(developer_id)"`. PG will report
it as `"max"`