Added more documentation to database classes