Fix NameError caused by default = null

NULL was not defined but 'NULL' was
reorganize
started new postgresql-verion scripts