Update to handle the fact that redshift doesn't support RETURNING on insert - short term hack of using MAX until we figure out a better way.