Update DirtyMemory.pl

Added Update Database and Search database function. I also converted the database into hash values.