slightly more reliable setup script to mess with postgresql config