New methods

Added new methods in db class