bodge sql lookup to get the web interface working again