PostGres codegen working