Added methods for working with DB