Fixed #292 postgresql suport for normal users view due MAX inside internal. made a standar sql99 sustitution. so Closed #292