Modified Priv, Database, and Hash classes

Did things...inneficiently