postgres script + port first