I think this will properly construct batch in database.

Note score calculation doesn't care about batch