fixed quality sql; color indicator in quality view