Documentation update and code cleanup for Database access layer