protected function load_tables()
{
if (isset(Config::get('db_connection')->prefix)) {
$prefix = Config::get('db_connection')->prefix;
} else {
$prefix = $this->prefix;
}
$this->prefix = $prefix;
// build the mapping with prefixes
foreach ($this->tables as $t) {
$this->sql_tables[$t] = $prefix . $t;
$this->sql_tables_repl[$t] = '{' . $t . '}';
}
}