PTFM-7894: dump last 100 lines of error log in db building