An easier route would be to install the patch via Admin > Tools > Install SQL Patches facility and it will take care of the database prefix for you.