very cool setup there itmar!
it looks like you are creating a <div id="something">this is database output</div> element around the database output on page. and then hiding the entire page. expect for the <div> you created within the database template.
err i take that back... you are replacing the entire page with what is in the <div id="something"> </div> and wiping it all out not just hiding it!