Created a DB class to stand for a persistence layer.