now saving pred_df as a file instead of into DB; some minor fixes