Corrected the java-database interface after the bug-fix in the database.