You don't need to mess around with the security module, the alarm is bypassed right now and when you grounded out that wire, you did not cause the drain.
Sounds like the internal mechanism of the hatch is broken, it's a fairly common issue. You need to remove as many screws as you can from the interior trim on the hatch, then reach down and pull the threaded rod up to open the hatch. Once the hatch is open, the remaining screws can be removed the entire trim piece removed. Reconnect the threaded rod to the mechanism and cross a pair of zip-ties over the connection point to keep it in place.
Can you leave the ground on the purple and yellow wire. Or do you have to ground it every time the security goes off.