improvements to gui_db sanitation