Fixed broken db code for buildenv_suitearches, and fixed envs.htm to work finally