Reduce accesses to the DOM
Fix the message of database open error
Reduce accesses to the DOM