private function returnDatabaseErrorResponse($e)
    {
        $info = $this->config('debug.queries')? ['error' => ['errors' => $this->db->statement->errorInfo(), 'last_query' => $this->db->lastQuery()]] : [];
        return $this->response->error(500, 'Database error', $info);
    }