Add support for table prefix - Thanks @HermanPeeren