added custom Input format for having a new mapper for each key in the database