wait for postgres to start, for a max of 5 minutes.