Refine the input inconsistency in the database