Update DatabaseHandler.java

Added a few comments to explain what the code does