modified loader file so that it fits new sample db