Added methods in interface, and some implementation in Database.java.