Update DatabaseFunctions.java

Added a verify function. Nothing is tested yet though.