You should always install SQL patches using the INSTALL SQL PATCHES from within the Zen Cart admin. It will automatically apply the table prefixes.