Start by heading back to the stud farm and seeing Mr. Scrivener. Take one of your newest horses — you'll want the endurance to get there in a single gallop.
After the conversation, leave his office and the village. Talking to villagers early is pointless since you need proof before the popularity rating moves.
Before meeting Davy at Blacklock's, return to your first stable. Walk toward the back and look on the bench opposite the first horse's stall — there's a set of wire cutters. Take them.
At Blacklock's, talk to Davy, then head back up the path. Turn left at the end instead of right, which brings you to the riverbank. Save your game here. Approach the wire fencing on the left, and when the arrow appears, open your inventory, select the wire cutters and use them. That opens a way onto the property.
Continue to the ramp up onto the terrace. The living room window is directly ahead — go through it and over to the piano. There's a piece of paper on the music stand; take it. Then go through the door opposite the piano and follow the bookcase until an arrow appears at the keypad.
The code is Red, Red, Green, Blue, Green, Yellow — and the paper from the piano tells you so. Grab the blue files from the stand nearby and leave.
Return to the village where Davy is waiting. Talk to him, then approach each villager you see, open your inventory and use the files on them. Once your popularity rating passes 100, go back and see Mr. Scrivener.