Update DBClass.java

Class implementation of DBInterface with all the functionalities discussed.