Add table prefixes support

This is needed for **oc_** and  non- **oc_**  tables to live happily in the same DB.