Java: simplified some monitor/db bindings.
C++: more consistent function naming.