In order to set up a murder mystery, you first have to develop your backstory. Without this, there would be nothing to discover.
The prequel takes place without the actual hero, the detective -- its main character is the perpetrator. Like every story, it deals with the fate of a wish or desire, in this case the perpetrator's, which is fulfilled or not and whose satisfaction is hindered by something or someone that must be eliminated as a result.
In a murder mystery, the detective's primary focus in the main plot is uncovering the motive behind the crime committed in the backstory. This motive, stemming from the backstory character's desires, becomes the central element of the investigation. Along with examining the crime scene, establishing the timeline, and identifying the weapon, reconstructing the motive forms the core of the detective's quest.
The protagonist in a murder mystery's main plot is chiefly concerned with understanding the desires driving the key character from the backstory, the perpetrator Uncovering this motive is crucial, as it provides the decisive evidence needed to convict the perpetrator.