locate legacy db script through kpse