You need to run both of those queries from your admincp..

Admincp >> Maintenance >> Execute SQL Query >> Manual Query