Fixed database install/upgrade scripts for the DISPLAY_DENSITY option.