fix grant on func_key tables