add check on document schema load for open database