update ordering of postgresql file creation