Modified the structure of the database.
Fix some bugs on IE 7.