adds support for table prefixes