Update Javadoc
Compress code for DataBase access in the ContextManager.