\documentclass[a4]{article}

% Standard LaTeX stuff
\usepackage{isolatin1}

% SQL queries
\texdbconnection{MySQL,localhost,root,*****,texdb}
%\texdbconnection{File,-,-,-,/var/db/mydata/}
\texdbdef{##q1}{select Vorname,Nachname from Users}{##Vorname,##Nachname}
\texdbdef{##q2}{select CONCAT(Nachname,", ",Vorname),CONCAT(Vorname," ",Nachname) from Users}{##Vorname,##Nachname}
\texdbdef{##q3}{select COUNT(Vorname) from Users}{##Count}

% Here the text begins
\begin{document}
This is a header for the page.

What you're seeing is \LaTeX{} with a MySQL extension.\\

\begin{tabular}{|l|l|}
\hline
Vorname & Nachname \\
\texdbfor{##q1}{\hline \textit{##Vorname} & \textbf{##Nachname}\\}
\hline
\hline
Nachname, Vorname & Vorname Nachname \\ \texdbfor{##q2}{
  \hline 
  \textit{##Vorname} & \textbf{##Nachname}\\
} \hline

\hline
\end{tabular}\\

There are \texdbfor{##q3}{##Count} people in the database right now.

This is a footer for the page.
\end{document}
