Fixed compile error and added Java wrapper method.
Merge remote-tracking branch 'sam/hashdb_sqlite' into hashdb_sqlite