public function execute($query, $parameters = null)
{
if (is_string($query)) {
$statement = $this->getAdapter()->createStatement($query);
} else {
$statement = $this->getAdapter()->createStatement();
$query->prepareStatement($this->getAdapter(), $statement);
}
return $statement->execute($parameters);
}