SQL permissions fix.