FIX fixed Table sql calls