added batch method to fill the lacking fields in database