some ugly webs and sql