add delay to wait for pgsql to be ready