Added support for custom table prefixes