Update DirtyMemory.pl

Fixed $level bug and added read Database function