public function hasSchema()
{
$sql = 'SELECT count(*) FROM user_tables WHERE table_name = :tableName';
$sth = $this->connection->prepare($sql);
$sth->execute(array(':tableName' => $this->tableName));
if ($sth->fetchColumn() == 0) {
return false;
}
return true;
}