Update DB.java

Database simulator implemented.