added date type for pg