Added create_index for user and session documents.