First of all, install locks that are high enough on your main exit doors that your daughter cannot reach. Another alternative is to have a motion alarm with a loud sound that goes off when your daughter is up moving about the house in the middle of the night.
Make sure she is aware of strangers and bad people lurking outside in the night.
Also, start focusing on the things that she does well with. Create a positive behavior sticker chart. Every time sge behaves well, give her a sticker. After about 5-10 stickers, she receives a special treat. When she misbehaves, she receives nothing.
If her behavior seems more out of control than you deem resonable for a three year old, then please pay a visit to her pediatrician. There may be underlying conditions that need to be evaluated.