Add table prefixes support

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