postgres script for reloading ftp data