Fixing binary null files on postgresql