Refactored result-modification code: Moved from controller layer to DAO
layer.