mlb fix + sql error logging