Documented database classes and fixed article indexing error in main database