Added more JavaDoc and refined the Schematica DB API and implementation